<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="jquery-1.9.1.min.js"></script>
        
        <script>
            
            function archivo(){
                
                var inputFileImage = document.getElementById('adjunto');
                var file = inputFileImage.files[0];
                var data = new FormData();
                data.append('archivo',file);
                var url = '../../Bitacora/Controlador/Consultas/CargarArchivo.php';
                
                $.ajax({
                    url:url,
                    type:'POST',
                    dataType: "json",
                    contentType:false,
                    data:data,
                    processData:false
                });
                
            }
            
        </script>
        
    </head>
    <body>
        
        <input type="file" name="adjunto" value="" id="adjunto"/>
        <input type="button" value="Enviar" onclick="archivo();"/>
        
    </body>
</html>
